package fr.pentalog.ctc.model;

import org.hibernate.validator.constraints.NotBlank;

/**
 * @author Danut Chindris
 * @since September 19, 2013
 */

public class AddEditForm {

	private static final String MSG_KEY_REQUIRED = "input.required";

	private Long id;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String region;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String postalCode;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String category;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String type;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String name;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String email;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String phone;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String title;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String description;
	@NotBlank(message = MSG_KEY_REQUIRED)
	private String price;
	private String pictureUrl;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getPictureUrl() {
		return pictureUrl;
	}

	public void setPictureUrl(String pictureUrl) {
		this.pictureUrl = pictureUrl;
	}
}
